body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    margin: 0;
    background: #f5f5f5;
    min-height: 100vh;
    padding-top: 60px; /* 为顶部导航留出空间 */
}

.nav-link {
    display: block;
    color: #505050;
    font-size: 14px;
    text-decoration: none; /* 移除下划线 */
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #00a1d6;
}
/* 激活状态样式 */
.nav-link.active {
    background: #00a1d6;
    color: white;
}

.nav-logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-right: 30px;
}



.nav-item {
    position: relative;
}
.nav-item.has-dropdown::after {
    content: "▾";
    margin-left: 4px;
    font-size: 12px;
    color: #999;
}


.top-nav {
    height: 60px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px; /* 恢复左右内边距 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    margin-left: auto; /* 关键属性 */
    gap: 30px; /* 元素间距 */
    list-style: none;
    margin-right: 30px;
}
.nav-right li a{
    color: black;
    text-decoration: none;
 }

.headimg{
    position: relative;
    width:45px;
    height: 45px;
    border-radius: 50%; /* 将图片的边角变成圆形 */
    object-fit: cover; /* 确保图片内容按比例填充，避免拉伸 */
}
.nav-links {
    display: flex;
    margin-left: 40px;
    list-style: none; /* 移除默认列表样式 */
    padding: 0;
    gap: 25px; /* 调整链接间距 */
}
li{
    cursor: pointer;
}


